<?php
/**
 * 管理后台首页
 * @file		AppControl.class.php
 * @author     	kelecode@gmail.com
 * @date       	2013-01-10
 * modify       
 */

session_start();
  
 class AppControl extends Control{
	
	public function __construct(){
		parent::__construct();
		$this->checkLogin();
	}
	
	public function checkLogin(){
		$isLogin = M('User')->checkLogin();
		if( ! $isLogin ){
			$url = C('backend') . 'login.php';
			redirect($url);
		}
		return true;
		
	}
	
}

$app = new AppControl();